package cn.com.duiba.millionaire.center.api.remoteservice;

import cn.com.duiba.boot.netflix.feign.AdvancedFeignClient;
import cn.com.duiba.millionaire.center.api.dto.CreditsConsumeLogDto;
import cn.com.duiba.millionaire.center.api.param.CreditsConsumeRequestParam;
import cn.com.duiba.millionaire.center.api.param.ValidTicket4MillionaireSearchParam;

/**
 * Created by xiaoxuda on 2018/2/12.
 */
@AdvancedFeignClient
public interface RemoteCreditsConsumeService {
    Long applyCreditsConsume(CreditsConsumeRequestParam param);

    CreditsConsumeLogDto findById(Long id);

    /**
     * 冲顶大会查询有效的扣积分请求
     * @param param
     * @return 返回成功状态的请求，若无则返回处理中的请求，否则返回null
     */
    CreditsConsumeLogDto findValidTicket4Millionaire(ValidTicket4MillionaireSearchParam param);
}
